package com.chixing.day03_oop;

public class PhoneMange {
    //初始化数组
    private Phone [] phone = new Phone[50];
    private int x = 0;
    public Phone mangeOrder(int phoneId, String phoneName, float phonePrice, int phoneNum){
        Phone temp = null ;//创建一个临时容器
        while (phoneNum >1000){
            //temp = new Phone(phoneId,phoneName,phonePrice,1000);
            phone[x++] = temp;
            phoneNum-=1000;
        }
       // phone[x++] = new Phone(phoneId,phoneName,phonePrice,phoneNum);
        System.out.println(x);
        return null;
    }
    public  Phone[] show() {
        for (int i = 0; i <x; i++) {
            System.out.println(phone[i].toString());
        }
        return null;
    }
}
